package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.Emp;
import com.itheima.pojo.LoginParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper extends BaseMapper<Emp> {

    @Select("select * from emp where username = #{username} and password =#{password}")
    Emp selectEmpByUserAndName(LoginParam loginParam);
}
